import defaultSettings from '@/settings';

let title = defaultSettings.title || '设计管理平台';

export default function getPageTitle(pageTitle) {
  pageTitle = pageTitle === 'dashboard' ? '首页' : pageTitle
  const ptitle = pageTitle === undefined ? '' : pageTitle + ' - '

  return `${ptitle}${title}`
}
